package game.games.rpg.magic;

import game.games.rpg.Player;

public class EnterWaterBuff extends AbstractBuff
{
    private Player player;

    public EnterWaterBuff(int startTick, Player player)
    {
        super(startTick, Integer.MAX_VALUE / 2, 1);
        this.player = player;
    }

    @Override
    public void doIt()
    {
        EnterFireBuff fireBuff = (EnterFireBuff) player.getBuff(EnterFireBuff.class);
        if (fireBuff != null)
        {
            fireBuff.setDuration(0);
        }
    }
    
}
